#include <cstdio>
#include "array.h"


int main()
{
	size_t size = 4;
	Array seq0;
	Array seq1;

	for (int i = 0; i < size; i++)
	{

		seq0.push_back(i);
		seq1.push_back(size - i);

	}

	std::cout << "after initialization seq0 and seq1" << std::endl;
	seq0.print();
	seq1.print();

	seq0 = seq1;
	std::cout << "after assignment  seq0 = seq1" << std::endl;
	seq0.print();

	Array seq3(seq0);
	std::cout << "after copy seq3(seq0)" << std::endl;
	seq3.print();

	seq0.push_back(3);
	seq0.push_back(3);
	seq0.push_back(3);

	std::cout << "after realloc seq0" << std::endl;
	seq0.print();
	
	
	return 0;
}
